# -*- coding: utf-8 -*-

###########################################################################
## Python code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
###########################################################################

import wx
import wx.xrc

###########################################################################
## Class wxb_settingsDialog
###########################################################################

class wxb_settingsDialog ( wx.Dialog ):

	def __init__( self, parent ):
		wx.Dialog.__init__ ( self, parent, id = wx.ID_ANY, title = u"settings", pos = wx.DefaultPosition, size = wx.Size( 485,350 ), style = wx.DEFAULT_DIALOG_STYLE )

		self.SetSizeHints( wx.DefaultSize, wx.DefaultSize )

		bSizer6 = wx.BoxSizer( wx.VERTICAL )

		gSizer3 = wx.GridSizer( 0, 2, 0, 2 )

		bSizer21 = wx.BoxSizer( wx.HORIZONTAL )

		self.m_staticText_offset = wx.StaticText( self, wx.ID_ANY, u"*Offset", wx.DefaultPosition, wx.Size( 100,-1 ), wx.ALIGN_RIGHT )
		self.m_staticText_offset.Wrap( -1 )

		bSizer21.Add( self.m_staticText_offset, 1, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )

		self.m_textCtrl_offset = wx.TextCtrl( self, wx.ID_ANY, u"0", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_textCtrl_offset.SetFont( wx.Font( 9, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, True, "微软雅黑" ) )
		self.m_textCtrl_offset.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_HIGHLIGHT ) )
		self.m_textCtrl_offset.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_WINDOW ) )
		self.m_textCtrl_offset.SetToolTip( u"页数偏移量，通常是PDF最后一个目录页的页数" )

		bSizer21.Add( self.m_textCtrl_offset, 4, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 )


		gSizer3.Add( bSizer21, 1, wx.EXPAND, 5 )

		bSizer23 = wx.BoxSizer( wx.HORIZONTAL )

		self.m_staticText_prefix = wx.StaticText( self, wx.ID_ANY, u"*Prefix", wx.DefaultPosition, wx.Size( 80,-1 ), wx.ALIGN_RIGHT )
		self.m_staticText_prefix.Wrap( -1 )

		bSizer23.Add( self.m_staticText_prefix, 1, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )

		self.m_textCtrl_prefix = wx.TextCtrl( self, wx.ID_ANY, u"\\t", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_textCtrl_prefix.SetFont( wx.Font( 9, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, True, "微软雅黑" ) )
		self.m_textCtrl_prefix.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_HIGHLIGHT ) )
		self.m_textCtrl_prefix.SetToolTip( u"目录文件每行的前缀，用于判断书签级别" )

		bSizer23.Add( self.m_textCtrl_prefix, 4, wx.ALL, 5 )


		gSizer3.Add( bSizer23, 1, wx.EXPAND, 5 )

		bSizer24 = wx.BoxSizer( wx.HORIZONTAL )

		self.m_staticText_delimiter = wx.StaticText( self, wx.ID_ANY, u"*Delimiter", wx.DefaultPosition, wx.Size( 100,-1 ), wx.ALIGN_RIGHT )
		self.m_staticText_delimiter.Wrap( -1 )

		bSizer24.Add( self.m_staticText_delimiter, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )

		self.m_textCtrl_delimiter = wx.TextCtrl( self, wx.ID_ANY, u"  ", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_textCtrl_delimiter.SetFont( wx.Font( 9, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, True, "微软雅黑" ) )
		self.m_textCtrl_delimiter.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_HIGHLIGHT ) )
		self.m_textCtrl_delimiter.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_WINDOW ) )
		self.m_textCtrl_delimiter.SetToolTip( u"分割符，通常是空格" )

		bSizer24.Add( self.m_textCtrl_delimiter, 4, wx.ALL, 5 )


		gSizer3.Add( bSizer24, 1, wx.EXPAND, 5 )

		bSizer25 = wx.BoxSizer( wx.HORIZONTAL )

		self.m_staticText_levelmarker = wx.StaticText( self, wx.ID_ANY, u"*Level-marker", wx.DefaultPosition, wx.Size( 80,-1 ), wx.ALIGN_RIGHT )
		self.m_staticText_levelmarker.Wrap( -1 )

		bSizer25.Add( self.m_staticText_levelmarker, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )

		self.m_textCtrl_levelmarker = wx.TextCtrl( self, wx.ID_ANY, u".", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_textCtrl_levelmarker.SetFont( wx.Font( 9, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, True, "微软雅黑" ) )
		self.m_textCtrl_levelmarker.SetForegroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_HIGHLIGHT ) )
		self.m_textCtrl_levelmarker.SetToolTip( u"级别标志符, 通常是 ." )

		bSizer25.Add( self.m_textCtrl_levelmarker, 4, wx.ALL, 5 )


		gSizer3.Add( bSizer25, 1, wx.EXPAND, 5 )


		bSizer6.Add( gSizer3, 0, wx.EXPAND, 5 )

		bSizer14 = wx.BoxSizer( wx.HORIZONTAL )

		self.m_staticText_prelevel = wx.StaticText( self, wx.ID_ANY, u"Pre-level", wx.DefaultPosition, wx.Size( 100,-1 ), wx.ALIGN_RIGHT )
		self.m_staticText_prelevel.Wrap( -1 )

		bSizer14.Add( self.m_staticText_prelevel, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 )

		m_choice_prelevelChoices = [ u"1", u"2", u"3", u"4" ]
		self.m_choice_prelevel = wx.Choice( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, m_choice_prelevelChoices, 0 )
		self.m_choice_prelevel.SetSelection( 1 )
		bSizer14.Add( self.m_choice_prelevel, 0, wx.ALL, 5 )


		bSizer6.Add( bSizer14, 0, wx.EXPAND, 5 )

		bSizer15 = wx.BoxSizer( wx.HORIZONTAL )

		self.m_staticText_pretitle = wx.StaticText( self, wx.ID_ANY, u"Pre-title", wx.DefaultPosition, wx.Size( 100,-1 ), wx.ALIGN_RIGHT )
		self.m_staticText_pretitle.Wrap( -1 )

		bSizer15.Add( self.m_staticText_pretitle, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 )

		self.m_textCtrl_pretitle = wx.TextCtrl( self, wx.ID_ANY, u"本章小结;习题", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_textCtrl_pretitle.SetToolTip( u"; 隔开, 注意不要出现Delimiter" )

		bSizer15.Add( self.m_textCtrl_pretitle, 1, wx.ALL, 5 )


		bSizer6.Add( bSizer15, 0, wx.EXPAND, 5 )

		bSizer27 = wx.BoxSizer( wx.HORIZONTAL )

		self.m_staticText_pdfoutputpath = wx.StaticText( self, wx.ID_ANY, u"PDF output path", wx.DefaultPosition, wx.Size( 100,-1 ), wx.ALIGN_RIGHT )
		self.m_staticText_pdfoutputpath.Wrap( -1 )

		bSizer27.Add( self.m_staticText_pdfoutputpath, 0, wx.ALL, 5 )

		self.m_textCtrl_pdfoutputpath = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_textCtrl_pdfoutputpath.SetToolTip( u"若为空则默认生成PDF输出目录" )

		bSizer27.Add( self.m_textCtrl_pdfoutputpath, 1, wx.ALL, 5 )


		bSizer6.Add( bSizer27, 1, wx.EXPAND, 5 )

		bSizer17 = wx.BoxSizer( wx.HORIZONTAL )

		self.m_staticText_dirlogpath = wx.StaticText( self, wx.ID_ANY, u"Dir-log path", wx.DefaultPosition, wx.Size( 100,-1 ), wx.ALIGN_RIGHT )
		self.m_staticText_dirlogpath.Wrap( -1 )

		bSizer17.Add( self.m_staticText_dirlogpath, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 )

		self.m_textCtrl_dirlogpath = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_textCtrl_dirlogpath.SetToolTip( u"dir-log输出文件夹，默认即可" )

		bSizer17.Add( self.m_textCtrl_dirlogpath, 1, wx.ALL, 5 )

		self.m_bpButton_dirlogpath = wx.BitmapButton( self, wx.ID_ANY, wx.NullBitmap, wx.DefaultPosition, wx.DefaultSize, wx.BU_AUTODRAW|0 )
		bSizer17.Add( self.m_bpButton_dirlogpath, 0, wx.ALL, 5 )


		bSizer6.Add( bSizer17, 1, wx.EXPAND, 5 )

		bSizer18 = wx.BoxSizer( wx.HORIZONTAL )

		self.m_staticText_dirformatpath = wx.StaticText( self, wx.ID_ANY, u"Dir-format path", wx.DefaultPosition, wx.Size( 100,-1 ), wx.ALIGN_RIGHT )
		self.m_staticText_dirformatpath.Wrap( -1 )

		bSizer18.Add( self.m_staticText_dirformatpath, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 )

		self.m_textCtrl_formatpath = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_textCtrl_formatpath.SetToolTip( u"格式化目录的输出文件夹，默认即可" )

		bSizer18.Add( self.m_textCtrl_formatpath, 1, wx.ALL|wx.EXPAND, 5 )

		self.m_bpButton_formatpath = wx.BitmapButton( self, wx.ID_ANY, wx.NullBitmap, wx.DefaultPosition, wx.DefaultSize, wx.BU_AUTODRAW|0 )
		bSizer18.Add( self.m_bpButton_formatpath, 0, wx.ALL, 5 )


		bSizer6.Add( bSizer18, 1, wx.EXPAND, 5 )

		bSizer19 = wx.BoxSizer( wx.HORIZONTAL )

		self.m_checkBox_adviceOnly = wx.CheckBox( self, wx.ID_ANY, u"print advice only", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_checkBox_adviceOnly.SetValue(True)
		bSizer19.Add( self.m_checkBox_adviceOnly, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 )

		self.m_checkBox_formatfirst = wx.CheckBox( self, wx.ID_ANY, u"format dir first", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_checkBox_formatfirst.SetValue(True)
		bSizer19.Add( self.m_checkBox_formatfirst, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 )

		self.m_checkBox_printprocess = wx.CheckBox( self, wx.ID_ANY, u"print process", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_checkBox_printprocess.SetValue(True)
		bSizer19.Add( self.m_checkBox_printprocess, 0, wx.ALL|wx.ALIGN_CENTER_VERTICAL, 5 )


		bSizer6.Add( bSizer19, 1, wx.EXPAND, 5 )

		gSizer2 = wx.GridSizer( 0, 2, 0, 0 )

		self.m_button_reset = wx.Button( self, wx.ID_ANY, u"reset", wx.DefaultPosition, wx.DefaultSize, 0 )
		gSizer2.Add( self.m_button_reset, 0, wx.ALL|wx.ALIGN_CENTER_HORIZONTAL, 5 )

		self.m_button_finish = wx.Button( self, wx.ID_ANY, u"finish", wx.DefaultPosition, wx.DefaultSize, 0 )
		gSizer2.Add( self.m_button_finish, 0, wx.ALL|wx.ALIGN_CENTER_HORIZONTAL, 5 )


		bSizer6.Add( gSizer2, 1, wx.EXPAND, 5 )


		self.SetSizer( bSizer6 )
		self.Layout()

		self.Centre( wx.BOTH )

		# Connect Events
		self.m_bpButton_dirlogpath.Bind( wx.EVT_BUTTON, self.OnbpClickDirLogPath )
		self.m_bpButton_formatpath.Bind( wx.EVT_BUTTON, self.OnbpClickDirFormatPath )
		self.m_button_reset.Bind( wx.EVT_BUTTON, self.OnSettingsReset )
		self.m_button_finish.Bind( wx.EVT_BUTTON, self.OnSettingsFinish )

	def __del__( self ):
		pass


	# Virtual event handlers, override them in your derived class
	def OnbpClickDirLogPath( self, event ):
		event.Skip()

	def OnbpClickDirFormatPath( self, event ):
		event.Skip()

	def OnSettingsReset( self, event ):
		event.Skip()

	def OnSettingsFinish( self, event ):
		event.Skip()


